﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.WareHouse.Domain
{
    /// <summary>
    /// 职位
    /// </summary>
    [SugarTable("WareHouse.JobModel", TableDescription = "职位")]
    public class JobModel:BaseEntity
    {
        /// <summary>
        /// 职位编码
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "职位编码")]
        public string JobId { get; set; }

        /// <summary>
        /// 职位名称
        /// </summary>
        [SugarColumn(ColumnDescription = "职位名称")]
        public string JobName { get; set; }

        /// <summary>
        /// 所属部门编码
        /// </summary>
        [SugarColumn(ColumnDescription = "所属部门编码")]
        public string DepId { get; set; }
        /// <summary>
        /// 上级职位编码
        /// </summary>
        [SugarColumn(ColumnDescription = "上级职位编码",IsNullable =true)]
        public string? SuperiorJobID { get; set; }

        /// <summary>
        /// 职位级别顺序，0是最大的 级位依次顺加
        /// </summary>
        [SugarColumn(ColumnDescription = "职位级别顺序")]
        public int RankOrder { get; set; }
    }
}
